from addons.models import (addon, category,
                           blenderversion, UserProfile, versionclass, theme)

from django.contrib import admin


class addonAdmin(admin.ModelAdmin):
    list_display = ['addon_name', 'addon_category', 'addon_author',
                    'addon_pub_date', 'addon_visible']

admin.site.register(addon, addonAdmin)


class catAdmin(admin.ModelAdmin):
    list_display = ['category_name']

admin.site.register(category, catAdmin)


class versionAdmin(admin.ModelAdmin):
    list_display = ['version']

admin.site.register(blenderversion, versionAdmin)


class userProfile(admin.ModelAdmin):
    list_display = ['user']

admin.site.register(UserProfile, userProfile)


class versionClass(admin.ModelAdmin):
    list_display = ['versiontype']

admin.site.register(versionclass, versionClass)


class themeAdmin(admin.ModelAdmin):
    list_display = ['theme_name']

admin.site.register(theme, themeAdmin)
